-
Notifications
You must be signed in to change notification settings - Fork 11.9k
fix(@angular/ssr): improve handling of route mismatches between Angular server routes and Angular router #28500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1521377
to
7fd2fdc
Compare
…ar server routes and Angular router This commit resolves an issue where routes defined in the Angular server routing configuration did not match those in the Angular router. Previously, discrepancies between these routes went unnoticed by users. With this update, appropriate error messages are now displayed when mismatches occur, enhancing the developer experience and facilitating easier troubleshooting.
7fd2fdc
to
c963dad
Compare
15aa9df
to
731adc9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (just left a few minor comments) 👍
route: currentRoutePath, | ||
}; | ||
|
||
delete metadata.matched; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The delete
operation used to cause deopt in VM, may be use null
or undefined
instead?
delete metadata.matched; | |
metadata.matched = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done during build time so I am less worried about that, if we set undefined or null, we’d need to filter it out so not to include it in the manifest
731adc9
to
135dcfa
Compare
…erMode.AppShell` This change introduces error handling to ensure that when multiple routes are configured with `RenderMode.AppShell`, an error message is displayed. This prevents misconfiguration and enhances clarity in route management.
135dcfa
to
3486248
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fix(@angular/ssr): show error when multiple routes are set with
RenderMode.AppShell
**This change introduces error handling to ensure that when multiple routes are configured with
RenderMode.AppShell
, an error message is displayed. This prevents misconfiguration and enhances clarity in route management.fix(@angular/ssr): improve handling of route mismatches between Angular server routes and Angular router
This commit resolves an issue where routes defined in the Angular server routing configuration did not match those in the Angular router. Previously, discrepancies between these routes went unnoticed by users. With this update, appropriate error messages are now displayed when mismatches occur, enhancing the developer experience and facilitating easier troubleshooting.